package com.baizhi.service.impl;

import com.baizhi.dao.CmfzGuruDao;
import com.baizhi.entity.CmfzGuru;
import com.baizhi.service.CmfzGuruService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CmfzGuruServiceImpl implements CmfzGuruService {
    @Autowired
    private CmfzGuruDao cmfzGuruDao;

    @Override
    public List<CmfzGuru> selectAllGuru(Integer page, Integer limit) {
        return cmfzGuruDao.selectList(null);
    }

    @Override
    public List<CmfzGuru> selectAllGuru() {
        return cmfzGuruDao.selectList(null);
    }

    @Override
    public int deleteById(Integer guruId) {
        return cmfzGuruDao.deleteById(guruId);
    }
}
